<template>
  <select-all :all-select-list="stageTypeList_"  v-model="Range" />
</template>

<script>
import { stageTypeList } from '@/model/'
import SelectAll from '@/components/SelectAll'
export default {
  name: 'MoneyRange',
  components: {
    SelectAll
  },
  props: {
    moneyRange: {
      type: Array,
      default: function() { return [] }
    },
    stageTypeList: {
      type: Array
    },
  },
  data() {
    return {
      stageTypeList_:[],
      Range: this.moneyRange,
    }
  },
  created() {
    if(this.stageTypeList){
   this.stageTypeList_=this.stageTypeList}else{
      this.stageTypeList_=stageTypeList
    }
  },
  watch: {
    Range() {
      this.$emit('input', this.Range)
    }
  }
}
</script>
